<?php
Route::group(['prefix' => 'admin/pageadver', 'namespace' => 'App\Http\Controllers\Admin'], function () {
    Route::get('', 'PageadverController@getIndex');
    Route::get('add', 'PageadverController@getAdd');
    Route::get('edit', 'PageadverController@getEdit');
});

Route::group(['prefix' => 'api/pageadver', 'namespace' => 'App\Http\Controllers\Api'], function () {
    Route::get('page-rows', 'PageadverController@getPageRows');
    Route::post('insert', 'PageadverController@postInsert');
    Route::post('update', 'PageadverController@postUpdate');
    Route::post('upload-pic1', 'PageadverController@postUploadPic1');
    Route::post('delete', 'PageadverController@postDelete');
});
